﻿@{
    Layout = null;
}
@using Webdiyer.WebControls.Mvc
@model PagedList<Models.BlogInfo>
@{
    foreach (Models.BlogInfo blogInfo in Model)
    {
    <div class="post_item">
        <div class="digg">
            <div class="diggit">
                <span class="diggnum">0</span>
            </div>
            <div class="clear">
            </div>
            <div class="digg_tip">
            </div>
        </div>
        <div class="post_item_body">
            <h3>
                <a href="@blogInfo.LinkUrl" target="_blank" class="titlelink">@blogInfo.Title</a>
            </h3>
            <p class="post_iteme_summary">
                @Html.Raw(blogInfo.BlogContent)
                ...
            </p>
            <div class="post_item_foot">
                <a class="lightblue" href="@blogInfo.LinkUrl">@blogInfo.AuthorID</a>
                @blogInfo.PublishTime.ToString()
                <span class="article_comment"><a class="gray" title="">评论(0)</a> </span><span class="article_view">
                    <a class="gray">阅读(1)</a> </span>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    }
    
    @Html.AjaxPager(Model, new PagerOptions()
       {
           PageIndexParameterName = "id",
           ShowDisabledPagerItems = false,
           ShowPageIndexBox = true
       },
    new AjaxOptions() { UpdateTargetId = "post_list", OnBegin = "function(){alert('Ajax OnBegin 事件被引发');}", OnComplete = "AjaxStop" })
}
